"""
配置文件：存储应用程序的常量、主题和其他配置项
"""

# 窗口配置
WINDOW_CONFIG = {
    "title": "canyong刷题系统 v1.0",
    "size": "1200x800",
    "min_size": (800, 600)
}

# 字体配置
FONTS = {
    "default": ("SimSun", 16),
    "title": ("SimSun", 20, "bold"),
    "content": ("SimSun", 18),
}

# 按钮配置
BUTTON_CONFIG = {
    "height": 40,
    "width": 100,
    "small_height": 35,
    "small_width": 80,
}

# 颜色配置
COLORS = {
    "success": "#00ff00",  # 绿色
    "error": "#ff0000",    # 红色
    "warning": "#FFD700",  # 金色
    "info": "#0099ff",     # 蓝色
    "purple": "#800080",   # 紫色
    "visited": "#0066CC",  # 深蓝色
    "marked": "#FFA500",   # 橙色
}

# 主题配置
THEMES = {
    "黑色主题": {
        "mode": "dark",
        "theme": "dark-blue",
        "primary_color": COLORS["success"],
        "button_color": "#1a1a1a",
        "text_color": COLORS["success"],
        "highlight_color": "#003300"
    },
    "白色主题": {
        "mode": "light",
        "theme": "light",
        "primary_color": "#000000",
        "button_color": "#ffffff",
        "text_color": "#000000",
        "highlight_color": "#e6e6e6"
    }
}

# AI配置
AI_CONFIG = {
    "api_key": "sk-jofMsprx9jDUJqk6UhuqtvpHMjyZzimIKLRBS9IjkBZ2POFs",
    "api_base": "https://api.moonshot.cn/v1",
    "model": "moonshot-v1-8k",
    "temperature": 0.8,
}

# 文件类型配置
FILE_TYPES = {
    "word": [("Word文档", "*.docx")],
}

# 布局配置
LAYOUT = {
    "padding": 10,
    "small_padding": 5,
    "left_frame_width": 200,
    "question_height": 200,
    "answer_height": 150,
    "ai_window_size": "800x600",
} 